﻿using System;
using System.Collections.ObjectModel;
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.ServiceModel.Description;

namespace Cubicle.Core.Hosting
{
    //[AttributeUsage(AttributeTargets.Class)]
    //public class EngineResolverBehaviorAttribute : Attribute, IServiceBehavior
    //{
    //    void IServiceBehavior.AddBindingParameters(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase, Collection<ServiceEndpoint> endpoints, BindingParameterCollection bindingParameters) { }

    //    void IServiceBehavior.ApplyDispatchBehavior(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase) { }

    //    void IServiceBehavior.Validate(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase)
    //    {
    //        var host = serviceHostBase as ServiceHost;
    //        host.AddGenericResolver();
    //    }
    //}
}